package com.spica.spicaschool.network

import com.skydoves.sandwich.ApiErrorModelMapper
import com.skydoves.sandwich.ApiResponse
import com.skydoves.sandwich.message

class ErrorResponseMapper : ApiErrorModelMapper<SpicaErrorResponse> {
    override fun map(apiErrorResponse: ApiResponse.Failure.Error<*>): SpicaErrorResponse {
        return SpicaErrorResponse(apiErrorResponse.statusCode.code, apiErrorResponse.message())
    }

}